package com.sdx.console.meet.service;

import java.util.List;

import org.beetl.sql.core.engine.PageQuery;
import javax.annotation.Resource;

import org.beetl.sql.core.query.Query;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ibeetl.admin.core.util.PlatformException;

import com.sdx.console.meet.dao.MeetPriceDao;
import com.sdx.console.meet.entity.MeetPrice;
import com.ibeetl.admin.core.service.BaseService;

/**
 * MeetPrice Service
 */

@Service
@Transactional
public class MeetPriceService extends BaseService<MeetPrice>{

    @Resource
	private MeetPriceDao meetPriceDao;

    public PageQuery<MeetPrice>queryByCondition(PageQuery query){
        PageQuery ret =  meetPriceDao.queryByCondition(query);
        queryListAfter(ret.getList());
        return ret;
    }

    public void batchDelMeetPrice(List<String> ids){
        try {
            meetPriceDao.batchDelMeetPriceByIds(ids);
        } catch (Exception e) {
            throw new PlatformException("批量删除MeetPrice失败", e);
        }
    }

	public List<MeetPrice> all() {
		return meetPriceDao.all();
		}
}